<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Class Index extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->checkAdmin($this->session->userdata('admin_id'));
        $this->data['controller'] = 'index';         
        $this->load->model('Mindex');
    }
    
    public function index()
    {
        $this->load->library('form_validation');
        $this->form_validation->set_rules('title', 'Tiêu đề', 'required');
        $this->form_validation->set_rules('content', 'Nội dung', 'required');
        
        $this->data['action'] = __FUNCTION__;
        $this->load->view('temp/layout', $this->data);
    }
    
}
